package com.itheima.stringdemo;

public class StringDemo02 {
    public static void main(String[] args) {
        String str1 = "abc";
        String str2 = new String("abc");

        System.out.println(str1 == str2);

        boolean result1 = str1.equals(str2);
        System.out.println(result1);

        String str3 = "Abc";
        boolean result2 = str2.equalsIgnoreCase(str3);
        System.out.println(result2);

    }
}
